package cn.ds.assets.module.assets.controller.admin.metadataModelTechnology.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 元数据管理-元模型-技术属性 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BaseMetadataModelTechnologyBaseVO {

    @Schema(description = "序号")
    private Integer sort;

    @Schema(description = "属性名称", example = "王五")
    private String attrName;

    @Schema(description = "属性描述")
    private String attrDesc;

    @Schema(description = "值域,module_type字段值为2,3时必填")
    private String range;

    @Schema(description = "是否必填,0:否,1:是")
    private Boolean required;

    @Schema(description = "是否只读,0:否,1:是")
    private Boolean readOnly;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "元模型主键ID,关联assets_metadata_model_base表id字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "12893")
    @NotNull(message = "元模型主键ID,关联assets_metadata_model_base表id字段不能为空")
    private Long modelId;

    @Schema(description = "组件类型,1.文本框,2.单选下拉框,3.复选下拉框,4.日期选择器,5.文件上传,6.复选搜索框,7.表格,8.模型", example = "2")
    private Byte moduleType;

}
